import java.io.File;

public class Demo_File6 {
    public static void main(String[] args) {
        File file = new File("d:/test/test1");
        File[] fList = file.listFiles();
        for(File f : fList){
            System.out.println(f.toString());
        }
    }
    public static void main1(String[] args) {
        File file = new File("d:/test/test1");
        String[] s = file.list();
        for(String string : s){
            System.out.println(string);
        }
    }
}
